home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / term-source.lha / Extras / Source / term-Source.lha / termData.h < prev    next >
C/C++ Source or Header  |  1995-07-02  |  15KB  |  548 lines

  1. /*
  2. **    termData.h
  3. **
  4. **    Global symbol definitions
  5. **
  6. **    Copyright © 1990-1995 by Olaf `Olsen' Barthel
  7. **        All Rights Reserved
  8. */
  9.  
  10. extern BOOLEAN             DebugFlag;
  11.  
  12.     /* termTag.asm */
  13.  
  14. extern LONG            TermVersion,
  15.                 TermRevision;
  16.  
  17. extern UBYTE            TermName[],
  18.                 TermDate[];
  19.  
  20.     /* termData.c */
  21.  
  22. extern struct ExecBase        *SysBase;
  23. extern struct DosLibrary    *DOSBase;
  24. extern struct Library        *GTLayoutBase;
  25.  
  26. extern struct IntuitionBase    *IntuitionBase;
  27. extern struct GfxBase        *GfxBase;
  28. extern struct RxsLib        *RexxSysBase;
  29. extern struct LocaleBase    *LocaleBase;
  30. extern struct Library        *GadToolsBase,
  31.                 *DiskfontBase,
  32.                 *ConsoleDevice,
  33.                 *TimerBase,
  34.                 *UtilityBase,
  35.                 *AslBase,
  36.                 *IFFParseBase,
  37.                 *CxBase,
  38.                 *IconBase,
  39.                 *LayersBase,
  40.                 *TranslatorBase,
  41.                 *WorkbenchBase,
  42.                 *AmigaGuideBase,
  43.                 *DataTypesBase,
  44.                 *XEmulatorBase;
  45.  
  46. extern BYTE             Kick30;
  47.  
  48. extern struct timerequest    *TimeRequest;
  49. extern struct MsgPort        *TimePort;
  50.  
  51. extern struct IOStdReq        *ConsoleRequest;
  52. extern struct KeyMap        *KeyMap;
  53. extern BPTR             KeySegment;
  54.  
  55. extern struct Screen        *Screen,
  56.                 *DefaultPubScreen,
  57.                 *SharedScreen;
  58. extern struct Window        *Window;
  59. extern LONG             WindowWidth,
  60.                  WindowHeight,
  61.                  WindowLeft,
  62.                  WindowTop;
  63. extern struct Window        *StatusWindow;
  64. extern struct Gadget        *StatusGadget;
  65. extern UWORD             StatusOffset;
  66. extern struct RastPort         StatusRastPort,
  67.                 *StatusRPort;
  68. extern UWORD             StatusDisplayLeft,
  69.                  StatusDisplayTop,
  70.                  StatusDisplayWidth,
  71.                  StatusDisplayHeight;
  72. extern APTR             OldWindowPtr;
  73. extern UBYTE __far         ScreenTitle[80];
  74. extern UBYTE             DepthMask;
  75. extern LONG             RenderPens[4],
  76.                  MappedPens[2][32],
  77.                  SafeTextPen;
  78. extern struct DrawInfo        *DrawInfo;
  79. extern LONG             ScreenWidth,
  80.                  ScreenHeight;
  81. extern BYTE             UseMasking;
  82. extern struct IBox         WindowBox;
  83.  
  84. extern struct BlockMarker    *WindowMarker;
  85. extern ULONG             ClickSecs,ClickMicros;
  86. extern BYTE             FirstClick,HoldClick;
  87. extern LONG             ClickX,ClickY;
  88.  
  89. extern struct AppWindow        *WorkbenchWindow;
  90. extern struct MsgPort        *WorkbenchPort;
  91.  
  92. extern struct ViewPort        *VPort;
  93. extern struct RastPort        *RPort;
  94. extern struct Region        *ClipRegion,
  95.                 *OldRegion;
  96. extern struct TextFont        *GFX,*CurrentFont,*UserTextFont;
  97. extern WORD             UserFontHeight,UserFontWidth,UserFontBase;
  98. extern struct TTextAttr         UserFont;
  99. extern struct TextFont        *TextFont;
  100. extern WORD             TextFontHeight,TextFontWidth,TextFontBase;
  101. extern struct TTextAttr         TextAttr;
  102. extern UBYTE __far         TextFontName[40],UserFontName[40];
  103. extern struct TagItem         TagDPI[2];
  104. extern APTR             VisualInfo;
  105. extern UWORD             FontRightExtend;
  106.  
  107. extern ULONG            (*  ReadAPen)(struct RastPort *RPort);
  108. extern ULONG            (*  ReadBPen)(struct RastPort *RPort);
  109. extern ULONG            (*  ReadDrMd)(struct RastPort *RPort);
  110. extern ULONG            (*  SetMask)(struct RastPort *RPort,ULONG Mask);
  111.  
  112. extern UWORD             MonoPens[];
  113. extern UWORD             StandardPens[];
  114. extern UWORD             ANSIPens[];
  115. extern UWORD             EGAPens[];
  116. extern UWORD             NewEGAPens[];
  117. extern UWORD             AtomicColours[16],
  118.                  EGAColours[16],
  119.                  ANSIColours[16];
  120. extern UWORD             DefaultColours[32],
  121.                  BlinkColours[32],
  122.                  NormalColours[32],
  123.                  StandardColours[32],
  124.                  PaletteSize;
  125.  
  126. extern LONG            *OffsetXTable,
  127.                 *OffsetYTable;
  128.  
  129. extern struct Process        *ThisProcess;
  130. extern struct Process        *RexxProcess;
  131. extern struct MsgPort        *TermRexxPort;
  132. extern struct Process        *StatusProcess;
  133. extern struct Task        *BufferTask;
  134. extern struct WBStartup        *WBenchMsg;
  135. extern BPTR             WBenchLock;
  136. extern BYTE             CheckBit,
  137.                  OwnDevBit;
  138. extern BYTE             InRexx;
  139. extern WORD             LimitCount;
  140. extern UBYTE __far         LimitMacro[MAX_FILENAME_LENGTH];
  141. extern LONG             CantQuit;
  142.  
  143. extern struct InputEvent    *FakeInputEvent;
  144.  
  145. extern struct IOExtSer        *ReadRequest;
  146. extern struct IOExtSer        *WriteRequest;
  147. extern struct MsgPort        *ReadPort;
  148. extern APTR             ReadBuffer,
  149.                  HostReadBuffer;
  150. extern UBYTE            *SerialMessage;
  151. extern ULONG             DTERate,
  152.                  SerialBufferSize;
  153. extern BYTE             ProcessIO;
  154. extern BYTE             FirstInvocation;
  155. extern BYTE             UseRTS_CTS;
  156.  
  157. extern LONG             BaudRates[],
  158.                  NumBaudRates;
  159.  
  160. extern struct RendezvousSemaphore    RendezvousSemaphore;
  161.  
  162. extern UBYTE __far         NewDevice[MAX_FILENAME_LENGTH];
  163. extern LONG             NewUnit;
  164. extern BYTE             UseNewDevice,
  165.                  UseNewUnit;
  166.  
  167. extern struct Catalog        *Catalog;
  168. extern struct Locale        *Locale;
  169.  
  170. extern struct Hotkeys         Hotkeys;
  171. extern struct NewBroker         NewTermBroker;
  172.  
  173. extern struct TextAttr         DefaultFont;
  174. extern struct TextAttr         GFXFont;
  175.  
  176. extern UWORD __chip         Stopwatch[(1 + 16 + 1) * 2];
  177.  
  178. extern ULONG __chip         Crosshatch,Ghosting;
  179.  
  180. extern BYTE             IsPrintable[256],
  181.                  IsGlyph[256],
  182.                  CharType[256];
  183. extern UBYTE __far         IBMConversion[256];
  184. extern UBYTE __far         ISOConversion[256];
  185. extern BYTE             GfxTable[256];
  186.  
  187. extern struct SpecialKey     SpecialKeys[13];
  188. extern JUMP            *SpecialTable;
  189.  
  190. extern BYTE             AbortMap[256];
  191. extern JUMP            *AbortTable;
  192.  
  193. extern VOID            (*  ConDump)(STRPTR,LONG);
  194. extern VOID            (*  ConOutput)(STRPTR,LONG);
  195. extern VOID            (*  ConProcessData)(register STRPTR,register LONG);
  196.  
  197. extern UBYTE __far         SharedBuffer[512];
  198. extern UBYTE __far         ARexxCommandBuffer[256],
  199.                  AmigaDOSCommandBuffer[256],
  200.                  DialNumberBuffer[256];
  201.  
  202. extern struct NewMenu         TermMenu[];
  203. extern struct Menu        *Menu;
  204. extern struct Image        *AmigaGlyph,
  205.                 *CheckGlyph;
  206. extern LONG             MenuLabels[];
  207.  
  208. extern struct TermPort        *TermPort;
  209.  
  210. extern struct Configuration    *Config,
  211.                 *PrivateConfig,
  212.                 *BackupConfig;
  213. extern struct SpeechConfig     SpeechConfig;
  214. extern BYTE             English;
  215. extern BYTE             Status;
  216. extern BYTE             Online,WasOnline;
  217. extern ULONG             OnlineMinutes,OnlinePlus;
  218. extern UWORD             PublicModes;
  219. extern struct SignalSemaphore     OnlineSemaphore;
  220.  
  221. extern UBYTE __far         LastConfig[MAX_FILENAME_LENGTH];
  222. extern UBYTE __far         DefaultPubScreenName[MAXPUBSCREENNAME + 1],
  223.                  SomePubScreenName[MAXPUBSCREENNAME + 1];
  224.  
  225. extern struct Buffer        *FileCapture;
  226. extern BPTR             PrinterCapture;
  227. extern UBYTE __far         CaptureName[MAX_FILENAME_LENGTH];
  228. extern BYTE             StandardPrinterCapture,
  229.                  ControllerActive;
  230. extern LONG             BufferFlushCount;
  231. extern VOID            (* __regargs CaptureData)(register APTR Data,register LONG Size);
  232.  
  233. extern UBYTE            **BufferLines;
  234. extern LONG             Lines;
  235. extern struct SignalSemaphore    *BufferSemaphore,
  236.                  BufferTaskSemaphore;
  237. extern LONG             MaxLines;
  238. extern LONG             BufferSpace;
  239. extern BYTE             BufferClosed;
  240. extern BYTE             BufferFrozen;
  241.  
  242. extern struct MinList         ReviewBufferHistory,
  243.                  TextBufferHistory;
  244.  
  245. extern struct SoundConfig     SoundConfig;
  246. extern BYTE             SoundChanged;
  247.  
  248. extern struct PhoneEntry    **Phonebook;
  249. extern LONG             PhoneSize;
  250. extern LONG             NumPhoneEntries;
  251. extern UBYTE __far         PhonePassword[256];
  252. extern BYTE             PhonePasswordUsed,
  253.                  RebuildMenu;
  254. extern UBYTE __far         Password[100];
  255. extern UBYTE __far         UserName[100];
  256. extern UBYTE __far         GlobalPassword[256];
  257.  
  258. extern UBYTE __far         CurrentBBSName[40],
  259.                  CurrentBBSNumber[100],
  260.                  CurrentBBSComment[100];
  261.  
  262. extern UBYTE __far         LastPhone[MAX_FILENAME_LENGTH];
  263. extern UBYTE __far         LastKeys[MAX_FILENAME_LENGTH];
  264. extern UBYTE __far         LastMacros[MAX_FILENAME_LENGTH];
  265. extern UBYTE __far         LastTranslation[MAX_FILENAME_LENGTH];
  266. extern UBYTE __far         LastCursorKeys[MAX_FILENAME_LENGTH];
  267. extern UBYTE __far         LastSpeech[MAX_FILENAME_LENGTH];
  268. extern UBYTE __far         LastSound[MAX_FILENAME_LENGTH];
  269.  
  270. extern struct MacroKeys        *MacroKeys;
  271. extern struct CursorKeys    *CursorKeys;
  272.  
  273. extern UBYTE            *StripBuffer;
  274.  
  275. extern UWORD             LastLine,LastColumn,LastPixel;
  276. extern UWORD             LastPrintableColumn;
  277. extern UWORD             LastPrintablePixel;
  278. extern UWORD             CharCellNominator,CharCellDenominator;
  279. extern UBYTE             CurrentFontScale,FontScalingRequired,CurrentCharWidth;
  280. extern UBYTE             Charset,Attributes,FgPen,BgPen;
  281. extern WORD             CursorX,CursorY,Top,Bottom;
  282. extern BYTE             UseRegion,RegionSet,InSequence,Quiet,Blocking;
  283. extern BYTE            *TabStops;
  284. extern UWORD             TabStopMax;
  285. extern BYTE             CharMode[2];
  286.  
  287. extern BYTE             ResetDisplay,
  288.                  DisplayReopened,
  289.                  FixPubScreenMode,
  290.                  FixScreenSize,
  291.                  Apocalypse;
  292.  
  293. extern struct SignalSemaphore     TerminalSemaphore;    // Protection from shape changers
  294.  
  295. extern STRPTR             AttentionBuffers[SCAN_COUNT];
  296. extern BYTE             BaudPending,FullCheck,UseFlow;
  297. extern UBYTE             BaudBuffer[80],BaudCount;
  298.  
  299. extern struct FlowInfo         FlowInfo;
  300. extern STRPTR             DataHold;
  301. extern LONG             DataSize;
  302.  
  303. extern BYTE             BinaryTransfer;
  304. extern LONG             TransferAbortState;
  305. extern WORD             TransferAbortCount;
  306. extern LONG             TransferBits;
  307. extern VOID            (*  ConTransfer)(STRPTR,LONG);
  308.  
  309. extern struct Window        *TransferWindow,
  310.                 *TransferPerfWindow;
  311. extern struct LayoutHandle    *TransferHandle;
  312. extern UBYTE __far         TransferTitleBuffer[256];
  313. extern STRPTR             TransferWindowTitle;
  314. extern BOOLEAN             TransferZoomed;
  315. extern struct Menu        *TransferMenu;
  316. extern struct Gadget        *TransferGadgetArray[GAD_TRANSFER_SKIP + 1];
  317. extern struct List         TransferInfoList;
  318.  
  319. extern struct FileTransferInfo    *FileTransferInfo;
  320.  
  321. extern UBYTE            *DownloadPath;
  322. extern BYTE             Uploading;
  323. extern BYTE             DidTransfer;
  324.  
  325. extern struct Library        *XProtocolBase;
  326. extern struct XPR_IO        *XprIO;
  327.  
  328. extern UBYTE __far         ProtocolOptsBuffer[256];
  329. extern BYTE             NewLibrary,NewOptions;
  330. extern BOOLEAN             XPRCommandSelected;
  331. extern UBYTE __far         LastXprLibrary[MAX_FILENAME_LENGTH];
  332. extern UBYTE __far         TransferProtocolName[40];
  333. extern UBYTE __far         ConvNumber[30],ConvNumber10[30];
  334. extern BYTE             UsesZModem,SendAbort,TransferAborted,TransferFailed,TransferError;
  335.  
  336. extern UBYTE             ZModemCancel[20];
  337.  
  338. extern LONG             CurrentPay;
  339. extern LONG             PayPerUnit[2];
  340. extern LONG             SecPerUnit[2];
  341. extern LONG             WhichUnit;
  342. extern struct PhoneEntry    *ChosenEntry;
  343. extern BYTE             ChosenInUse;
  344. extern struct List        *PatternList,
  345.                 *ChosenPattern;
  346. extern UBYTE __far         LastPattern[MAX_FILENAME_LENGTH];
  347. extern BYTE             PatternsChanged;
  348. extern struct SignalSemaphore     PatternSemaphore;
  349.  
  350. extern UBYTE __far         WindowName[256];
  351.  
  352. extern ULONG             BlockNestCount;
  353. extern BYTE             WeAreBlocking;
  354.  
  355. extern struct List        *DialList;
  356. extern BYTE             SendStartup;
  357. extern LONG             FirstDialMenu;
  358. extern struct RexxMsg        *DialMsg;
  359.  
  360. extern BYTE             ReleaseSerial;
  361. extern BYTE             ResetSerial;
  362. extern BYTE             BatchMode;
  363. extern BYTE             MainTerminated,
  364.                  IconTerminated,
  365.                  DoIconify,
  366.                  DoDial,
  367.                  KeepQuiet;
  368.  
  369. extern BYTE             ConfigChanged,PhonebookChanged,TranslationChanged,
  370.                  MacroChanged,CursorKeysChanged,FastMacrosChanged,
  371.                  HotkeysChanged,SpeechChanged,BufferChanged;
  372.  
  373. extern UBYTE __far         LastDownload[MAX_FILENAME_LENGTH];
  374. extern UBYTE __far         LastUpload[MAX_FILENAME_LENGTH];
  375.  
  376. extern struct Hook         CommandHook,
  377.                  PasswordHook;
  378. extern BYTE             DontActivate;
  379.  
  380. extern struct Window        *CommandWindow;
  381. extern struct Gadget        *CommandGadget;
  382. extern struct Gadget        *ActiveGadget;
  383.  
  384. extern struct Process        *ClipProcess;
  385. extern struct MsgPort        *ClipPort;
  386. extern BYTE             ClipInput,
  387.                  ClipXerox,
  388.                  ClipPrefix;
  389.  
  390. extern UBYTE __far         SendPrompt[256];
  391. extern LONG             SendPromptLen;
  392. extern BYTE            (*  SendLine)(register STRPTR,register LONG);
  393.  
  394. extern struct Window        *PacketWindow;
  395. extern struct Gadget        *PacketGadgetArray[2];
  396. extern struct Menu        *PacketMenu;
  397. extern struct Gadget        *PacketGadgetList;
  398. extern struct List         PacketHistoryList;
  399.  
  400. extern struct NewMenu         GetsMenu[];
  401.  
  402. extern BYTE             Initializing,LoadColours;
  403.  
  404. extern UBYTE            *Raster,*RasterAttr;
  405. extern LONG             RasterWidth,RasterHeight;
  406. extern BYTE             Marking;
  407. extern struct SignalSemaphore    *RasterSemaphore;
  408. extern BYTE             RasterEnabled;
  409.  
  410. extern struct GenericList    *GenericListTable[GLIST_COUNT];
  411.  
  412. extern ULONG             VersionProps[2];
  413.  
  414. extern struct Window        *TopWindow;
  415. extern struct Window        *WindowStack[5];
  416. extern WORD             WindowStackPtr;
  417.  
  418. extern LONG             TermID;
  419. extern UBYTE __far         TermIDString[];
  420. extern UBYTE __far         RexxPortName[256];
  421.  
  422. extern struct List         FastMacroList;
  423. extern LONG             FastMacroCount;
  424. extern UBYTE __far         LastFastMacros[MAX_FILENAME_LENGTH];
  425. extern struct Window        *FastWindow;
  426. extern WORD             FastWindowLeft,
  427.                  FastWindowTop,
  428.                  FastWindowHeight;
  429.  
  430. extern struct List         DoubleBufferList;
  431. extern struct SignalSemaphore     DoubleBufferSemaphore;
  432.  
  433. extern struct XEM_IO        *XEM_IO;
  434. extern ULONG             XEM_Signal;
  435. extern struct XEmulatorHostData     XEM_HostData;
  436. extern UBYTE            *OptionTitle;
  437. extern struct List         XEM_MacroList;
  438. extern struct XEmulatorMacroKey    *XEM_MacroKeys;
  439. extern UBYTE __far         EmulationName[40];
  440.  
  441. extern struct List         EmptyList;
  442.  
  443. extern UWORD             ScrollLineFirst,ScrollLineLast,
  444.                  ScrollLineCount;
  445. extern struct ScrollLineInfo    *ScrollLines;
  446.  
  447. extern struct Window        *ReviewWindow;
  448.  
  449. extern ULONG             BytesIn,
  450.                  BytesOut;
  451. extern struct DateStamp         SessionStart;
  452. extern struct Window        *InfoWindow;
  453.  
  454. extern LONG             InterWidth,
  455.                  InterHeight;
  456.  
  457. extern struct TranslationEntry    **SendTable,
  458.                 **ReceiveTable;
  459.  
  460. extern struct WindowInfo     WindowInfoTable[];
  461.  
  462. extern struct Hook         LocaleHook;
  463. extern struct Hook         GuideHook;
  464.  
  465. extern struct MsgQueue        *SpecialQueue;
  466.  
  467. extern STRPTR            *EditLabels;
  468. extern struct List        *EditList;
  469. extern struct Node        *EditNode;
  470.  
  471. extern struct Hook         BackfillHook;
  472.  
  473. extern BOOLEAN            (*SerWriteBypass)(STRPTR Buffer,LONG Size);
  474.  
  475. extern UBYTE __far         ShrunkenName[MAX_FILENAME_LENGTH],
  476.                  OriginalName[MAX_FILENAME_LENGTH];
  477.  
  478. extern struct MsgQueue        *TerminalQueue;
  479. /*
  480. extern struct DChannel        *NetChannel;
  481. extern struct MsgPort        *NetListen;
  482. extern ULONG             NetSigMask;
  483. extern BOOLEAN             NetTerminated;
  484. */
  485.  
  486. extern struct DiskObject     DropIcon;
  487.  
  488. extern BOOL             RememberOutput,
  489.                  RememberInput,
  490.                  Recording,
  491.                  RecordingLine;
  492.  
  493. extern BOOLEAN             WatchTraps;
  494. extern BOOLEAN             TrapsChanged;
  495. extern UBYTE             LastTraps[MAX_FILENAME_LENGTH];
  496.  
  497. extern LONG            (* __regargs Translate_CR_LF)(register STRPTR Data,register LONG Size);
  498.  
  499. extern STRPTR             EOL_Labels[];
  500.  
  501.  
  502. /**********************************************************************/
  503.  
  504.  
  505. extern struct ControlCode     ANSICode[];
  506. extern WORD             NumCodes;
  507.  
  508.  
  509. /**********************************************************************/
  510.  
  511.  
  512. extern struct SignalSemaphore    ARexxQueueSemaphore;
  513. extern struct List        ARexxQueue;
  514. extern BOOL            ARexxRunning;
  515.  
  516.  
  517. /**********************************************************************/
  518.  
  519.  
  520. extern UWORD            PenTable[16];
  521. extern UBYTE            TextAttributeTable[16];
  522. extern WORD            ForegroundPen,
  523.                 BackgroundPen;
  524.  
  525.  
  526. /**********************************************************************/
  527.  
  528.  
  529. extern BOOL            ChatMode;
  530. extern ULONG            SliderType;
  531.  
  532.  
  533. /**********************************************************************/
  534.  
  535.  
  536. extern ColourTable        *NormalColourTable,
  537.                 *BlinkColourTable,
  538.                 *ANSIColourTable,
  539.                 *EGAColourTable,
  540.                 *DefaultColourTable,
  541.                 *MonoColourTable;
  542.  
  543.  
  544. /**********************************************************************/
  545.  
  546.  
  547. extern UBYTE             Language[80];
  548.